html-experiment

Task

Meta

So far most of the experiments in here have been pretty small and self-contained, and I’ve left markdown docs around the place to summarise findings. And sometimes while figuring things out I’ve also added brief-ish trains of thought. Some experiments are starting to get more involved though and will need better tracking, so setting this folder up like I’ve done in other projects.

Won’t do branch-merge-release here though - this project will stay all trunk development - so ‘done’ tasks will probably end up grouped by date. When html-common gets into release cadence some tasks will be moved over to there.

Todo

!important - Turn on jsdoc typechecking for inline <script></script> tags within html

Found some references to this and some open vscode issues that look related:

Done (for now)

Experimental/tentative patterns

Custom setters that return this for chaining

setCoord(x,y) { this.x = x; this.y = y; return this; }

A ‘set’ accessor must have exactly one parameter.ts(1049) Setters cannot return a value.ts(2408)

Stock js setters can only have one param, and cannot return anything so they can’t be chained.

In some places I’m writing custom setters that accept more parameters, and return this to allow for chaining. I’m not sure if i want to go boots-and-all with this yet, but trying it out in a few spots; makes some testing code a bit easier for example.